﻿@{
    ViewBag.Title = "编辑用户";
}

@model EditUserViewModel

<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <div class="card card-primary">
                <div class="card-header">
                    <h3 class="card-title">@ViewBag.Title</h3>
                </div>
                <form method="post" asp-action="UserEdit">
                    <div class="card-body">
                        <span class="text-danger">
                            @Html.ValidationMessage("EditUser")
                            @*@Html.ValidationSummary()*@
                        </span>
                        <div class="form-group">
                            <label asp-for="Id"></label>
                            <input asp-for="Id" class="form-control" disabled />
                        </div>
                        <div class="form-group">
                            <label asp-for="SupplierName"></label>
                            <input asp-for="SupplierName" class="form-control" />
                            <span asp-validation-for="SupplierName" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <label asp-for="UserName"></label>
                            <input asp-for="UserName" class="form-control" />
                            <span asp-validation-for="UserName" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <label asp-for="PhoneNumber"></label>
                            <input asp-for="PhoneNumber" class="form-control" />
                            <span asp-validation-for="PhoneNumber" class="text-danger"></span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button type="submit" class="btn btn-primary">更新</button>
                        <a class="btn btn-default" asp-action="SupplierUserLists">取消</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>